package com.gitee.srurl.core.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author zxw
 * @date 2023/4/29 14:29
 */
@Data
@Component
@ConfigurationProperties(prefix = "short-url.unique-id")
public class UniqueIdProperties {

    private Long epoch;

    private Long workerId;

    private Long dataCenterId;

    private Long timeOffset;

    private Long randomSequenceLimit;

    private String backwardsHandle;

    private Long lastTimestamp;
}
